﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BTaxiRouteHistory
    {
        private readonly DTaxiRouteHistory _dTaxiRouteHistory = new DTaxiRouteHistory();
      
        public bool Add(Model.TaxiRouteHistoryInfo model)
        {
            return _dTaxiRouteHistory.Add(model);
        }
 
        public bool Update(Model.TaxiRouteHistoryInfo model)
        {
            return _dTaxiRouteHistory.Update(model);
        }
         
        public bool Delete(int id)
        {
            return _dTaxiRouteHistory.Delete(id);
        }
                 
        public DataSet GetList(string strWhere)
        {
            return _dTaxiRouteHistory.GetList(strWhere);
        }

        public DataSet GetListByPhoneNumberAndTime(string phoneNumber, string startTime, string endTime)
        {
            return _dTaxiRouteHistory.GetListByPhoneNumberAndTime(phoneNumber, startTime, endTime);
        }

        public DataSet GetStatisticsByPara(string phoneNumber, string startTime, string endTime)
        {
            return _dTaxiRouteHistory.GetStatisticsByPara(phoneNumber, startTime, endTime);
        }

        public DataSet GetStatisReportResult(int intObject, string strValue,
                                             int dateType, string startTime, string endTime)
        {
            return _dTaxiRouteHistory.GetStatisReportResult(
                intObject, strValue, dateType, startTime, endTime);
        }
    }
}
